package com.jymj.dao;

import com.jymj.entity.CjEntity;
import com.jymj.entity.dto.ComplaintsDto;
import com.jymj.entity.dto.ScorebarDto;
import com.jymj.entity.landmanage.*;
import com.jymj.entity.vo.CompositeVo;
import com.jymj.entity.vo.ScoreVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by ${lc} on 2020/12/10.
 */
@Mapper
public interface ScoreDao {

    void saveCjScorebar(ScorebarEntity scorebarEntity);

    void updateScorebar(ScorebarEntity scorebarEntity);

    List<ScorebarEntity> queryScorebar(ScorebarDto scorebarDto);

    List<CjEntity> selectBycjCode();

    CjEntity selectCjobjByCode(String code);

    List<ScorebarEntity> queryZhenCode(@Param("quCode") String quCode,@Param("date") String date);

    List<ScoreMonEntity> queryByMonJf(ScorebarDto scorebarDto);

    List<ScoreMonEntity> queryByMon(ScorebarDto scorebarDto);

    List<ScoreZhenEntity> queryRanking(Map<String,Object> params);

    List<CjInfo> queryZhenCodelist(@Param("qucode") String quCode,@Param("date") String date);

    List<CjInfo> queryGuding();

    List<PjEnviorSupvsEntity> queryByCode (String code);

    List<PjEnviorSupvsEntity> queryZgByCode(String code);

    void deleteScorebar();

    List<PjEnviorSupvsEntity> queryMwtByCode(String code);

    List<PjEnviorSupvsEntity> getEnviorSupvs(@Param("code") String code, @Param("type") Integer type);

    List<PjEnviorSupvsEntity> getScore(String code);

    List<ComplaintsDto> getJsjb(@Param("code") String code);

    void save(ScoreEntity scoreEntity);

    List<ScoreEntity> queryScore(ScorebarDto scorebarDto);

    List<ScoreVo> getZhscore(ScorebarDto scorebarDto);

    List<PointRecordEntity> queryRecord(ScorebarDto scorebarDto);

    List<PjEnviorSupvsEntity> queryEnvior(Integer id);

    void saveToiletRecord(@Param("toiletRecordEntities") List<ToiletRecordEntity> toiletRecordEntities);

    List<PointRecordEntity> getToiletRecord(ScorebarDto scorebarDto);

    void saveScoreTotal(@Param("scoreVos") List<ScoreVo> scoreVos);

    List<ScoreVo> queryZhscore(ScorebarDto scorebarDto);

    Integer queryYqzgs(@Param("code") String code);

    List<CompositeVo> getZhdf(@Param("date") String date);

    CompositeVo getQzhdf(@Param("date") String date);

    List<CompositeVo> getJcdf(@Param("date") String date, @Param("type") Integer type);

    CompositeVo getQjcdf(@Param("date") String date, @Param("type") Integer type);

    List<PjEnviorSupvsEntity> getEnviorSupvsFkqk(@Param("code") String code, @Param("type") Integer type);
}
